{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>卡卷列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->           
            <div class="row">
                <div class="col-sm-12">   
                <div  class="col-sm-2" style="width: 100px">
<!--                     <div class="input-group" >  
                        <a href="{:url('userAdd')}"><button class="btn btn-outline btn-primary" type="button">卡卷搜索</button></a> 
                    </div> -->
                </div>                                            
                    <form name="admin_list_sea" class="form-search" method="post" action="{:url('gelin_search')}">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="text" id="key" class="form-control" name="key" value="" placeholder="输入需查询卡卷ID/编号" />   
                                <span class="input-group-btn"> 
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
                                </span>
                            </div>
                        </div>
                    </form>                         
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>卡卷ID</th>
                                <th>姓名</th>
                                <th>核销医生</th>
                                <th>卡卷状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        
                            {if condition="!empty($info)"}
                                {foreach name="info" item="vo"}
                                <tr class="long-td">
                                    <td>{$vo['Id']}</td>
                                    <td>{$vo['wechatname']}</td>
                                    <td>{$vo['doctors']}天</td>
                                    <td>{if condition = "$vo['status'] eq 1"}
                                        <font color="red">已核销</font>
                                      {else/}
                                        <font color="green">未核销</font>
                                        {/if}
                                    </td>

                                    <td> 
                                       <a class="btn btn-primary btn-xs">
                                       <i class="fa fa-line-chart"></i>查看</a>
                                    </td>
                                </tr>
                                {/foreach}
                            {else /} 
                                <tr class="long-td">
                                    <td colspan="7" style="color:red;">
                                        没有该卡卷的记录
                                    </td>  
                                </tr>  
                            {/if}
                        <tbody id="list-content"></tbody>
                    </table>
                    <div id="AjaxPage" style=" text-align: right;">{$page}</div>
                    <div id="allpage" style=" text-align: right;"></div>
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

<!-- 加载动画 -->
<!-- <div class="spiner-example">
    <div class="sk-spinner sk-spinner-three-bounce">
        <div class="sk-bounce1"></div>
        <div class="sk-bounce2"></div>
        <div class="sk-bounce3"></div>
    </div>
</div> -->

{include file="public/footer" /}
<script type="text/javascript">
//用户状态
function gelin_state(id){
    lunhui.status(id,'{:url("gelin_state")}');
}
</script>
</body>
</html>